﻿import request from '/@/utils/request';
enum Api {
  AddAsset = '/api/asset/add',
  DeleteAsset = '/api/asset/delete',
  UpdateAsset = '/api/asset/update',
  PageAsset = '/api/asset/page',
  DetailAsset = '/api/asset/detail',
}

// 增加设备基础信息管理
export const addAsset = (params?: any) =>
	request({
		url: Api.AddAsset,
		method: 'post',
		data: params,
	});

// 删除设备基础信息管理
export const deleteAsset = (params?: any) => 
	request({
			url: Api.DeleteAsset,
			method: 'post',
			data: params,
		});

// 编辑设备基础信息管理
export const updateAsset = (params?: any) => 
	request({
			url: Api.UpdateAsset,
			method: 'post',
			data: params,
		});

// 分页查询设备基础信息管理
export const pageAsset = (params?: any) => 
	request({
			url: Api.PageAsset,
			method: 'post',
			data: params,
		});

// 详情设备基础信息管理
export const detailAsset = (id: any) => 
	request({
			url: Api.DetailAsset,
			method: 'get',
			data: { id },
		});


